package cate.common.table.activity.mtower.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.mtower.MTowerLevelRow;

import java.util.ArrayList;
import java.util.List;

public class MTowerLevelSheet extends ESheet<MTowerLevelRow> {
    @Override
    public String getSheetName() {
        return "关卡配置";
    }

    public List<Integer> showLevels(int day, int configId) {
        List<Integer> levels = new ArrayList<>();
        for (MTowerLevelRow row : this.list) {
            if (row.day <= day && row.configId == configId) {
                levels.add(row.id);
            }
        }
        return levels;
    }
}
